// Copyright 2013 The Changkong Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.

package wangwang

const VersionNo = "20140725"

/* 关键词列表 */
type WordList struct {
	Word string `json:"word"`
}

/* 聊天记录列表 */
type MsgList struct {
	Content   string `json:"content"`
	Direction int    `json:"direction"`
	Length    int    `json:"length"`
	Time      string `json:"time"`
	Type      int    `json:"type"`
	UrlLists  struct {
		UrlList []*UrlList `json:"url_list"`
	} `json:"url_lists"`
	WordLists struct {
		WordCountList []*WordCountList `json:"word_count_list"`
	} `json:"word_lists"`
}

/* url列表 */
type UrlList struct {
	Url string `json:"url"`
}

/* 关键词统计 */
type WordCountList struct {
	Count int    `json:"count"`
	Word  string `json:"word"`
}

/* E客服账号操作信息 */
type AccountInfo struct {
	Account      string `json:"account"`
	AccountStats struct {
		AccountStat []*AccountStat `json:"account_stat"`
	} `json:"account_stats"`
	Count int `json:"count"`
}

/* E客服账号操作记录 */
type AccountStat struct {
	LoginStatus     int    `json:"login_status"`
	OnserviceStatus int    `json:"onservice_status"`
	Time            string `json:"time"`
}

/* 客户等待（客服）平均时长列表 */
type WaitingTimesOnDay struct {
	WaitingDate      string `json:"waiting_date"`
	WaitingTimeByIds struct {
		WaitingTimeById []*WaitingTimeById `json:"waiting_time_by_id"`
	} `json:"waiting_time_by_ids"`
}

/* 平均等待时长 */
type WaitingTimeById struct {
	AvgWaitingTimes int    `json:"avg_waiting_times"`
	ServiceStaffId  string `json:"service_staff_id"`
}

/* 聊天对象ID列表 */
type Chatpeer struct {
	Date string `json:"date"`
	Uid  string `json:"uid"`
}

/* 评价详细 */
type EvalDetail struct {
	EvalCode   int    `json:"eval_code"`
	EvalRecer  string `json:"eval_recer"`
	EvalSender string `json:"eval_sender"`
	EvalTime   string `json:"eval_time"`
	SendTime   string `json:"send_time"`
}

/* 客服评价统计列表(按天) */
type StaffEvalStatOnDay struct {
	EvalDate           string `json:"eval_date"`
	StaffEvalStatByIds struct {
		StaffEvalStatById []*StaffEvalStatById `json:"staff_eval_stat_by_id"`
	} `json:"staff_eval_stat_by_ids"`
}

/* 客服评价统计 */
type StaffEvalStatById struct {
	Evaluations struct {
		Evaluation []*Evaluation `json:"evaluation"`
	} `json:"evaluations"`
	ServiceStaffId string `json:"service_staff_id"`
}

/* 客服评价 */
type Evaluation struct {
	EvaluationName string `json:"evaluation_name"`
	EvaluationNum  string `json:"evaluation_num"`
}

/* 组及其成员列表 */
type GroupMember struct {
	GroupId    int    `json:"group_id"`
	GroupName  string `json:"group_name"`
	MemberList string `json:"member_list"`
}

/* 登录日志 */
type LoginLog struct {
	Time string `json:"time"`
	Type string `json:"type"`
}

/* 登陆日志 */
type UserLoginlog struct {
	Count     int `json:"count"`
	Loginlogs struct {
		LoginLog []*LoginLog `json:"login_log"`
	} `json:"loginlogs"`
	Uid string `json:"uid"`
}

/* 未回复统计列表(按天) */
type NonReplyStatOnDay struct {
	NonreplyDate      string `json:"nonreply_date"`
	NonreplyStatByIds struct {
		NonreplyStatById []*NonreplyStatById `json:"nonreply_stat_by_id"`
	} `json:"nonreply_stat_by_ids"`
}

/* 客服未回复统计 */
type NonreplyStatById struct {
	NonReplyCustomId string `json:"non_reply_customId"`
	NonReplyNum      int    `json:"non_reply_num"`
	ServiceStaffId   string `json:"service_staff_id"`
}

/* 某天的客服在线时长列表 */
type OnlineTimesOnDay struct {
	OnlineDate      string `json:"online_date"`
	OnlineTimeByIds struct {
		OnlineTimeById []*OnlineTimeById `json:"online_time_by_id"`
	} `json:"online_time_by_ids"`
}

/* 在线时长 */
type OnlineTimeById struct {
	OnlineTimes    int    `json:"online_times"`
	ServiceStaffId string `json:"service_staff_id"`
}

/* (某天)回复统计列表 */
type ReplyStatOnDay struct {
	ReplyDate      string `json:"reply_date"`
	ReplyStatByIds struct {
		ReplyStatById []*ReplyStatById `json:"reply_stat_by_id"`
	} `json:"reply_stat_by_ids"`
}

/* 客服回复统计 */
type ReplyStatById struct {
	ReplyNum int    `json:"reply_num"`
	UserId   string `json:"user_id"`
}

/* 分流权重 */
type StreamWeight struct {
	User   string `json:"user"`
	Weight int    `json:"weight"`
}
